import config from './config';
import sjqTable from './components/sjqTable/index.vue';
import sjqFormTable from './components/sjqFormTable/index.vue'
import sjqIconSelect from './components/sjqIconSelect/index.vue'
import sjqUpload from './components/sjqUpload/index.vue'
import sjqFile from './components/sjqUpload/file.vue'
export default {
    install(app: any) {
        // 挂载全局对象
        app.config.globalProperties.$CONFIG = config

        //注册全局组件
        app.component('sjqTable', sjqTable);
        app.component('sjqFormTable', sjqFormTable);
        app.component('sjqIconSelect', sjqIconSelect);
        app.component('sjqUpload', sjqUpload);
        app.component('sjqFile', sjqFile);

        // 注册全局指令
        // app.directive('colorSwitch', colorSwitch);

    }
}
